package sv.gob.mh.dgii.model;

// Generated Dec 10, 2007 4:52:21 PM by Hibernate Tools 3.2.0.beta7

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DfDictaminadorAut generated by hbm2java
 */
@Entity
@Table(name = "DF_DICTAMINADOR_AUT", schema = "DICTAMEN", uniqueConstraints = {})
@SequenceGenerator(name="SEQ_DF_DICTAMINADOR_AUT" , sequenceName="SEQ_DF_DICTAMINADOR_AUT")
public class DfDictaminadorAut implements java.io.Serializable {

	// Fields    

	/**
	 * 
	 */
	private static final long serialVersionUID = 2963702857016940045L;

	private Integer iddictaAut;

    private String mestado;

	private RcRuc rcRuc;

	private String sobservacion;

	private String cusuario;

	private Date fhinicio;

	private Date fhingreso;

	private Date fhmodificacion;

	private Date fhfin;

	private Integer ncvca;

	private Set<DfNombramiento> dfNombramientos = new HashSet<DfNombramiento>(0);

	/** default constructor */
	public DfDictaminadorAut() {
	}


	
	@Column(name = "M_ESTADO", unique = false, nullable = false, insertable = true, updatable = true)
	public String getMestado() {
		return mestado;
	}

	public void setMestado(String mestado) {
		this.mestado = mestado;
	}



	// Property accessors
	@Id
	@Column(name = "ID_DICTA_AUT", unique = true, nullable = false, insertable = true, updatable = true, precision = 5, scale = 0)
	@GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_DF_DICTAMINADOR_AUT")
	public Integer getIddictaAut() {
		return this.iddictaAut;
	}

	public void setIddictaAut(Integer iddictaAut) {
		this.iddictaAut = iddictaAut;
	}

	 

	@ManyToOne(cascade = {}, fetch = FetchType.EAGER)
	@JoinColumn(name = "NIT_DICTAMINADOR", unique = false, nullable = false, insertable = true, updatable = true)
	public RcRuc getRcRuc() {
		return this.rcRuc;
	}

	public void setRcRuc(RcRuc rcRuc) {
		this.rcRuc = rcRuc;
	}

	@Column(name = "S_OBSERVACION", unique = false, nullable = true, insertable = true, updatable = true)
	public String getSobservacion() {
		return this.sobservacion;
	}

	public void setSobservacion(String sobservacion) {
		this.sobservacion = sobservacion;
	}

	@Column(name = "C_USUARIO", unique = false, nullable = false, insertable = true, updatable = true, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_INICIO", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFhinicio() {
		return this.fhinicio;
	}

	public void setFhinicio(Date fhinicio) {
		this.fhinicio = fhinicio;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", unique = false, nullable = false, insertable = true, updatable = true, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_MODIFICACION", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFhmodificacion() {
		return this.fhmodificacion;
	}

	public void setFhmodificacion(Date fhmodificacion) {
		this.fhmodificacion = fhmodificacion;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_FIN", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFhfin() {
		return this.fhfin;
	}

	public void setFhfin(Date fhfin) {
		this.fhfin = fhfin;
	}

	@Column(name = "N_CVCA", unique = false, nullable = true, insertable = true, updatable = true, precision = 5, scale = 0)
	public Integer getNcvca() {
		return this.ncvca;
	}

	public void setNcvca(Integer ncvca) {
		this.ncvca = ncvca;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "dfDictaminadorAut")
	public Set<DfNombramiento> getDfNombramientos() {
		return this.dfNombramientos;
	}

	public void setDfNombramientos(Set<DfNombramiento> dfNombramientos) {
		this.dfNombramientos = dfNombramientos;
	}

}
